package com.lyc.pojo;

import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import java.time.LocalDateTime;

/**
 * 用户点赞和收藏记录表实体类
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Like {
    /**
     * 记录唯一标识ID
     */
    private Integer id;

    /**
     * 用户ID
     */
    private Integer userId;

    /**
     * 信息ID
     */
    private Integer postId;

    /**
     * 类型：点赞(like)或收藏(favorite)
     */
    private String type;

    /**
     * 操作时间
     */
    private LocalDateTime createdAt;
}